9198e8c3153978eaf336c0ecead04df165083573,java/org/apache/catalina/core/DefaultInstanceManager.java,DefaultInstanceManager,populateAnnotationsCache,#Class#Map#,298
Before Change
method.getParameterTypes(),
annotation.name(),
AnnotationCacheEntryType.SETTER));
} else if (method.isAnnotationPresent(EJB.class)) {
EJB annotation = method.getAnnotation(EJB.class);
annotations.add(new AnnotationCacheEntry(
method.getName(),
method.getParameterTypes(),
annotation.name(),
AnnotationCacheEntryType.SETTER));
} else if (method.isAnnotationPresent(WebServiceRef.class)) {
WebServiceRef annotation =
method.getAnnotation(WebServiceRef.class);
annotations.add(new AnnotationCacheEntry(
method.getName(),
method.getParameterTypes(),
annotation.name(),
AnnotationCacheEntryType.SETTER));
} else if (method.isAnnotationPresent(PersistenceContext.class)) {
PersistenceContext annotation =
method.getAnnotation(PersistenceContext.class);
annotations.add(new AnnotationCacheEntry(
method.getName(),
method.getParameterTypes(),
annotation.name(),
AnnotationCacheEntryType.SETTER));
} else if (method.isAnnotationPresent(PersistenceUnit.class)) {
PersistenceUnit annotation =
method.getAnnotation(PersistenceUnit.class);
annotations.add(new AnnotationCacheEntry(
method.getName(),
method.getParameterTypes(),
After Change
PersistenceContext persistenceContextAnnotation;
PersistenceUnit persistenceUnitAnnotation;
if ((resourceAnnotation =
method.getAnnotation(Resource.class)) != null) {
annotations.add(new AnnotationCacheEntry(
method.getName(),
method.getParameterTypes(),
resourceAnnotation.name(),
AnnotationCacheEntryType.SETTER));
} else if ((ejbAnnotation =
method.getAnnotation(EJB.class)) != null) {
annotations.add(new AnnotationCacheEntry(
method.getName(),
method.getParameterTypes(),
ejbAnnotation.name(),
AnnotationCacheEntryType.SETTER));
} else if ((webServiceRefAnnotation =
method.getAnnotation(WebServiceRef.class)) != null) {
annotations.add(new AnnotationCacheEntry(
method.getName(),
method.getParameterTypes(),
webServiceRefAnnotation.name(),
AnnotationCacheEntryType.SETTER));
} else if ((persistenceContextAnnotation =
method.getAnnotation(PersistenceContext.class)) != null) {
annotations.add(new AnnotationCacheEntry(
method.getName(),
method.getParameterTypes(),
persistenceContextAnnotation.name(),
AnnotationCacheEntryType.SETTER));
} else if ((persistenceUnitAnnotation = method.getAnnotation(PersistenceUnit.class)) != null) {
annotations.add(new AnnotationCacheEntry(
method.getName(),
method.getParameterTypes(),